using System.Data.Entity;
using Domain.Model.Affiliates;
using Domain.Model.Banks;
using Domain.Model.Employees;
using Domain.Model.Nomenclatures;
using Domain.Model.Orders;
using Domain.Model.Partners;

namespace Infrastructure.Data
{
    public partial class MainModuleUnitOfWork : DbContext, IMainModuleUnitOfWork
    {
        public MainModuleUnitOfWork()
            : base("name=DBConnect")
        {
        }

        #region IDbSet Properties

        public IDbSet<Affiliate> Affiliates { get; set; }
        public IDbSet<Bank> Banks { get; set; }
        public IDbSet<Partner> Partners { get; set; }
        public IDbSet<Employee> Employee { get; set; }
        public IDbSet<Nomenclature> Nomenclatures { get; set; }
        public IDbSet<Order> Orders { get; set; }

        #endregion

        //protected override void OnModelCreating(ModelBuilder modelBuilder)
        //{
        //}
    }
}
